<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
	<div class="breadcrumb_wrap">
		<ul class="breadcrumb">
			<li>您的位置：</li>
			<li> <a  href="#">订单管理</a> <span class="divider">></span> </li>
			<li class="active">列表</li>
		</ul>
	</div>
	<div class="select_box " >
		<form class="form-horizontal" role="form">
			<div class="form-group col-md-4">
				<label class="control-label">订单号：</label>
				<input type="text" class="form-control" ng-model="orderParam.orderId">
			</div>
			<div class="form-group col-md-4">
				<label class="control-label">用户名：</label>
				<input type="text" class="form-control"  ng-model="orderParam.realName">
			</div>
			<div class="form-group col-md-4">
				<label class="control-label">公司名称：</label>
				<input type="text" class="form-control"  ng-model="orderParam.companyName">
			</div>
			<div class="form-group col-md-4">
				<label class="control-label">季度：</label>
				<select class="form-control" ng-model="orderParam.quarter">
					<option value="0" >--请选择--</option>
					<option value="1">第一季度</option>
					<option value="2">第二季度</option>
					<option value="3">第三季度</option>
					<option value="4">第四季度</option>
				</select>
			</div>
			<div class="form-group col-md-4">
				<label class="control-label">交易状态：</label>
				<select class="form-control" ng-model="orderParam.status">
					<option value="" >--请选择--</option>
					<option value="1">已交易</option>
					<option value="0">未交易</option>
				</select>
			</div>
			<div class="form-group col-md-4">
				<label class="control-label">付款状态：</label>
				<select class="form-control" ng-model="orderParam.payStatus">
					<option value="" >--请选择--</option>
					<option value="1">已付款</option>
					<option value="0">未付款</option>
				</select>
			</div>
			<div class="form-group col-md-4">
				<label class="control-label">开始时间：</label>
				<input type="text" class="form-control" ng-model="orderParam.startTime"  laydate-dir id="ld_start" istime="true" format="YYYY-MM-DD hh:mm:ss"   placeholder="年-月-日 时:分" style="width: 100%" >
			</div>
			<div class="form-group col-md-4">
				<label class="control-label">结束时间：</label>
				<input type="text" class="form-control" ng-model="orderParam.endTime"  laydate-dir id="ld_end" istime="true" format="YYYY-MM-DD hh:mm:ss"   placeholder="年-月-日 时:分" style="width: 100%" >
			</div>
			<div class="form-group col-md-4 button_box ">
				<button type="button" ng-click="searchOrderList()" class="btn btn-primary" ><i class="glyphicon glyphicon-search" ></i>搜索</button>
			</div>
		</form>
	</div>
	<div class="table-responsive con_list">
		<table class="table table-striped">
			<thead>
			<tr>
				<!--<th>配货</th>-->
				<th >订单号</th>
				<th>用户名</th>
				<th>订单时间</th>
				<!--<th>交易时间</th>-->
				<th>约/g</th>
				<th>交易状态</th>
				<th>实际金额</th>
				<th>操作</th>
			</tr>
			</thead>
			<tbody>
			<tr ng-repeat="order in orderList ">
				<!--<td ng-if="order.phStatus==1" ><input type="checkbox" value="{{order}}" name="phStatus" checked></td>-->
				<!--<td ng-if="order.phStatus==0" ><input type="checkbox" value="{{order}}" name="phStatus"></td>-->
				<td><a href="/xdd/common/order/{{order.orderId}}" target="_blank">{{order.orderId}}</a></td>
				<td>{{order.userName}}</td>
				<td>{{order.createTime|dateStr:'yyyy-mm-dd hh:mm:ss'}}</td>
				<!--<td>{{order.dealTime|dateStr:'yyyy-mm-dd hh:mm:ss'}}</td>-->
				<td>{{order.totalWeight}}g</td>
				<td ng-if="order.status==1" ><font color="red">已交易</font></td>
				<td ng-if="order.status==0" >未交易</td>
				<td>{{order.dealPrice}}</td>
				<td class="ops">
					<!--<a href="/xdd/common/order/{{order.orderId}}"><button type="button" class="btn btn-primary">查看</button></a>-->
					<a href="#"><button type="button" class="btn btn-primary editor" ng-click="updateOrder(order)">修改</button></a>
					<a href="/xdd/common/order_courier/{{order.orderId}}"><button type="button" class="btn btn-primary examine">物流</button></a>
					<a href="#"><button type="button" class="btn btn-primary examine" ng-click="exportOrder(order.orderId)">导出</button></a>
				</td>
			</tr>
			</tbody>
		</table>
	</div>
	<div class="page_wrap">
		<div class="text-center scott">
			<uib-pagination  total-items="totalItems" ng-model="currentPage" boundary-links="true" max-size="5"   ng-change="pageChanged()" items-per-page="itemsPerPage" previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></uib-pagination>
		</div>
	</div>
</div>